import Vapor
import WebSocket

/// Register your application's routes here.
public func routes(_ router: Router) throws {
    // Basic "Hello, world!" example
    
    let router = router.grouped("api")
    
    try router.register(collection: APIsController())
    
    try router.register(collection: SessionsController())

    try router.register(collection: UsersController())

    try router.register(collection: LiveStreamsController())
    
    try router.register(collection: ImagesController())
    
    try router.register(collection: CommentsController())
}
